import api from './api'
/**
 * 用户相关api
 */
export class QiniuApi extends api {
  getPhotoConfig () {
    return this.request({
      url: `${this.servicePath}/${this.modulePath}/photo`,
      method: 'get'
    })
  }

  /**
   * 获取其它附件上传配置
   */
  getOtherConfig () {
    return this.request({
      url: `${this.servicePath}/${this.modulePath}/other`,
      method: 'get'
    })
  }
}

export default new QiniuApi('common/qiniu')
